﻿using System.ServiceProcess;
using Metro.Kashikoi.Management;

namespace Metro.Kashikoi.WindowsServiceHost
{
    public partial class Service1 : ServiceBase
    {
        ServiceManager manager = ServiceManager.Instance;

        public Service1()
        {
            InitializeComponent();
            manager.Initialize();
        }

        protected override void OnStart(string[] args)
        {
            manager.Start();
        }

        protected override void OnStop()
        {
            manager.Stop();
        }
    }
}
